package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @Title: BuyerCarBean
 * @Package: com.project.bean
 * @Description:
 * @Author: Liang-Xie
 */
@SuppressWarnings("all")
/**
 * 采购车实体类
 */
@TableName("t_buyerCar")
public class BuyerCarBean {
    /**
     * 编号
     */
    @TableId(value = "pk_buyerCarId", type = IdType.AUTO)
    private Integer id;

    /**
     * 采购的商品
     */
    @TableField(exist = false)
    private ProductBean product;

    /**
     * 采购商品ID
     */
    @TableField(value = "fk_productId")
    private String productId;

    /**
     * 采购数量
     */
    @TableField(value = "bc_num")
    private Integer num;

    /**
     * 采购用户的编号
     */
    @TableField(value = "fk_userId")
    private Integer userId;
    /**
     * 采购价
     */
    @TableField(value = "bc_money")
    private Integer money;


    public BuyerCarBean() {
    }

    public BuyerCarBean(String productId, Integer num, Integer userId, Integer money) {
        this.productId = productId;
        this.num = num;
        this.userId = userId;
        this.money = money;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "BuyerCarBean{" +
                "id=" + id +
                ", product=" + product +
                ", productId='" + productId + '\'' +
                ", num=" + num +
                ", userId=" + userId +
                ", money=" + money +
                "\n";
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
